home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
mac
/
prime_CD
/
pb
/
PREVIEW.DIR
/
00153_Script_utils II
< prev
next >
Wrap
Text File
|
1997-07-22
|
1KB
|
50 lines
on killMovies startChan, endChan
if voidP(startChan) then set startChan = 1
if voidP(endChan) then set endChan = 48
repeat with channel = startChan to endChan
if the type of the member of sprite channel = #digitalVideo then
set the movierate of sprite channel to 0
end if
end repeat
end
on fStartFirstVideo -- starts & returns first available sprite
global gDefaultVolume
repeat with channel = 1 to 48
if the type of the member of sprite channel = #digitalVideo then
set the movierate of sprite channel to 1
set the volume of sprite channel to gDefaultVolume
exit repeat
end if
end repeat
return channel
end
on fBlankVideo startChan, endChan
global gDefaultVolume
if voidP(startChan) then set startChan = 1
if voidP(endChan) then set endChan = startChan
set chanList = []
repeat with channel = startChan to endChan
if the type of the member of sprite channel = #digitalVideo then
set the volume of sprite channel to gDefaultVolume
set the visible of sprite channel to 0
append chanList, channel
end if
end repeat
return chanList
end
on fUNblank chanList
global gDefaultVolume
repeat with channel in chanList
set the volume of sprite channel to gDefaultVolume
set the visible of sprite channel to 1
end repeat
return true
end
-- example:
-- set chanList = fBlankVideo(gQTchan)
-- go next
-- set dummy = fUNblank(chanList)